package cn.z2huo.knowledge.basic.switchcontrol;

/**
 *
 **/
public class SwitchDemo {

    public static void main(String[] args) {

    }

    public static void test() {
        int[] array = {1,3,4,5,6,2};
        for (int i=0; i<array.length; i++){
            switch (i){
                case 0:
                    System.out.println("0 hhh");
                    break;
                case 1:
                case 2:
                case 3:
                    System.out.println("1/2/3 hahah");
            }
        }
    }

    public static void test2(String string) {

//        switch (string) {
//            case "1":
//            case "2":
//            case "3":
//            case "4":
//                System.out.println("1");
//                break;
//            case "1":
//            case "2":
//            case "3":
//                System.out.println("");
//        }
    }
}
